include internal children when doing focus.
authorJonathan Blandford <jrb@redhat.com>
Mon, 15 Apr 2002 22:21:30 +0000 (22:21 +0000)
committerJonathan Blandford <jrb@src.gnome.org>
Mon, 15 Apr 2002 22:21:30 +0000 (22:21 +0000)
Mon Apr 15 15:41:56 2002  Jonathan Blandford  <jrb@redhat.com>

* gtk/gtkcontainer.c (gtk_container_focus): include internal
children when doing focus.
(gtk_container_get_all_children): new static function to include
internal children when making a list of them.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkcontainer.c

index d7fd25fd7fd80e6adb1192734c9fa8a8b2092a16..f9bac8ce9207314a7ecdbc4d6f432a44d780cf64 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Mon Apr 15 15:41:56 2002  Jonathan Blandford  <jrb@redhat.com>
+
+       * gtk/gtkcontainer.c (gtk_container_focus): include internal
+       children when doing focus.
+       (gtk_container_get_all_children): new static function to include
+       internal children when making a list of them.
+
 Sun Apr 14 16:56:59 2002  Kristian Rietveld  <kris@gtk.org>
 
        * gtk/gtktreeprivate.h: add _gtk_tree_view_column_get_editable_cell and
index d7fd25fd7fd80e6adb1192734c9fa8a8b2092a16..f9bac8ce9207314a7ecdbc4d6f432a44d780cf64 100644 (file)
@@ -1,3 +1,10 @@
+Mon Apr 15 15:41:56 2002  Jonathan Blandford  <jrb@redhat.com>
+
+       * gtk/gtkcontainer.c (gtk_container_focus): include internal
+       children when doing focus.
+       (gtk_container_get_all_children): new static function to include
+       internal children when making a list of them.
+
 Sun Apr 14 16:56:59 2002  Kristian Rietveld  <kris@gtk.org>
 
        * gtk/gtktreeprivate.h: add _gtk_tree_view_column_get_editable_cell and
index d7fd25fd7fd80e6adb1192734c9fa8a8b2092a16..f9bac8ce9207314a7ecdbc4d6f432a44d780cf64 100644 (file)
@@ -1,3 +1,10 @@
+Mon Apr 15 15:41:56 2002  Jonathan Blandford  <jrb@redhat.com>
+
+       * gtk/gtkcontainer.c (gtk_container_focus): include internal
+       children when doing focus.
+       (gtk_container_get_all_children): new static function to include
+       internal children when making a list of them.
+
 Sun Apr 14 16:56:59 2002  Kristian Rietveld  <kris@gtk.org>
 
        * gtk/gtktreeprivate.h: add _gtk_tree_view_column_get_editable_cell and
index d7fd25fd7fd80e6adb1192734c9fa8a8b2092a16..f9bac8ce9207314a7ecdbc4d6f432a44d780cf64 100644 (file)
@@ -1,3 +1,10 @@
+Mon Apr 15 15:41:56 2002  Jonathan Blandford  <jrb@redhat.com>
+
+       * gtk/gtkcontainer.c (gtk_container_focus): include internal
+       children when doing focus.
+       (gtk_container_get_all_children): new static function to include
+       internal children when making a list of them.
+
 Sun Apr 14 16:56:59 2002  Kristian Rietveld  <kris@gtk.org>
 
        * gtk/gtktreeprivate.h: add _gtk_tree_view_column_get_editable_cell and
index d7fd25fd7fd80e6adb1192734c9fa8a8b2092a16..f9bac8ce9207314a7ecdbc4d6f432a44d780cf64 100644 (file)
@@ -1,3 +1,10 @@
+Mon Apr 15 15:41:56 2002  Jonathan Blandford  <jrb@redhat.com>
+
+       * gtk/gtkcontainer.c (gtk_container_focus): include internal
+       children when doing focus.
+       (gtk_container_get_all_children): new static function to include
+       internal children when making a list of them.
+
 Sun Apr 14 16:56:59 2002  Kristian Rietveld  <kris@gtk.org>
 
        * gtk/gtktreeprivate.h: add _gtk_tree_view_column_get_editable_cell and
index d7fd25fd7fd80e6adb1192734c9fa8a8b2092a16..f9bac8ce9207314a7ecdbc4d6f432a44d780cf64 100644 (file)
@@ -1,3 +1,10 @@
+Mon Apr 15 15:41:56 2002  Jonathan Blandford  <jrb@redhat.com>
+
+       * gtk/gtkcontainer.c (gtk_container_focus): include internal
+       children when doing focus.
+       (gtk_container_get_all_children): new static function to include
+       internal children when making a list of them.
+
 Sun Apr 14 16:56:59 2002  Kristian Rietveld  <kris@gtk.org>
 
        * gtk/gtktreeprivate.h: add _gtk_tree_view_column_get_editable_cell and
index b9aeea334eef04c1831941ee492246ff13d44737..b93d9d1ad6408eba6d0db15c581719e3a7295a19 100644 (file)
@@ -1389,6 +1389,20 @@ get_focus_chain (GtkContainer *container)
   return g_object_get_data (G_OBJECT (container), "gtk-container-focus-chain");
 }
 
+/* same as gtk_container_get_children, except it includes internals
+ */
+static GList *
+gtk_container_get_all_children (GtkContainer *container)
+{
+  GList *children = NULL;
+
+  gtk_container_forall (container,
+                        gtk_container_children_callback,
+                        &children);
+
+  return children;
+}
+
 static gboolean
 gtk_container_focus (GtkWidget        *widget,
                      GtkDirectionType  direction)
@@ -1420,7 +1434,7 @@ gtk_container_focus (GtkWidget        *widget,
       if (container->has_focus_chain)
        children = g_list_copy (get_focus_chain (container));
       else
-       children = gtk_container_get_children (container);
+       children = gtk_container_get_all_children (container);
 
       if (container->has_focus_chain &&
          (direction == GTK_DIR_TAB_FORWARD ||